def request_parse(req_data):
    
    if req_data.method == 'POST' or req_data.method == 'DELETE':
        data = req_data.get_json()
    elif req_data.method == 'GET':
        data = req_data.args
    return data